package com.msk.base.service.shipperSupplierRelation;

import com.msk.base.domain.goods.BaseDistance;
import com.msk.base.mapper.goods.BaseDistanceDao;
import com.msk.base.mapper.shipperSupplierRelation.BizShipperSupplierRelationshipDao;
import com.msk.sys.service.CrudService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 运距管理Service
 *
 * @author wlxiang
 *
 * @version 20230606
 */
@Service
@Transactional(readOnly = true)
public class BizShipperSupplierRelationshipService extends CrudService<BaseDistanceDao, BaseDistance> {

    @Autowired
    private BizShipperSupplierRelationshipDao bizShipperSupplierRelationshipDao;

    /**
     * @Description 查询货主关联的承运商
     * @Author wlxiang
     * @Date 15:37 2023/6/7
     * @Param
     * @param shipperId
     * @return java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     **/
    public List<Map<String,Object>> selectSupplierInfoListByShipperId(String shipperId){
        return bizShipperSupplierRelationshipDao.selectSupplierInfoListByShipperId(shipperId);
    }
}
